﻿@model Tyshka.Subroutines.ViewModels.TagDetailModel

@{
    ViewBag.Title = "Detail";
}

<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $("#tagList").tablesorter();
    }
); 
</script>

<div class="row">
    <div class="span8">
	    <div class="bright_block">
		    <div class="row">
				<div class="span5">
					<h1>@Model.Name Tag</h1>					
				</div>
			</div>					
		</div>
		<div class="bright_block">
			<h2>Statistics</h2>
			@Model.SubroutinesLocalCount subroutine(s) out of @Model.SubroutinesTotalCount
		</div>
	</div>
	<div class="span4 dcpu_logo">
		<!-- -->
	</div>
</div>

<div class="row">
	<div class="span12">				
		<div class="bright_block">
					<table class="table table-striped" id="tagList">
						<thead>
							<tr>
								<th>Subroutine</th>
								<th>Author</th>
                                <th>Rating</th>
							</tr>
						</thead>
						<tbody>
                            @foreach(var subroutine in Model.Items){
                                <tr>
                                    <td>@Url.SubroutineDetailLink(subroutine.Id, subroutine.Name)</td>
                                    <td>@subroutine.Author</td>
                                    <td>@subroutine.Votes</td>
                                </tr>
                            }
                        </tbody>
					</table>		
        </div>
	</div>
</div>
